package org.jinyan.wechat.model;

import java.io.Serializable;
import java.util.List;

/**
 * 回复用户的消息
 * 
 * @author lizy
 */
public class WechatReply implements Serializable {

	public static final String TEXT = "text";
	public static final String MUSIC = "music";
	public static final String NEWS = "news";

	public static final String ERROR_CONTENT = "查询失败，请输入请求信息,格式\n "
			+ "1 、天气#地区(天气#北京) "
			+ "\n 2、打开#LED* "
			+ "\n 3、关闭#LED* "
			+ "\n4、设置#LED序列号#别名";
	public static final String WELCOME_CONTENT = "欢迎你使用为控制LED";

	private int id;// 数据库存储id

	// 开发者微信号

	private String toUserName;
	// 发送方帐号（一个OpenID）

	private String fromUserName;
	// 消息创建时间

	private String createTime;
	// 消息类型（text/music/news）

	private String msgType;

	// 回复的消息内容,长度不超过2048字节 (文本消息专有)

	private String content;

	// 音乐链接 (音乐消息专有)

	private String musicUrl;
	// 高质量音乐链接，WIFI环境优先使用该链接播放音乐 (音乐消息专有)

	private String hQMusicUrl;

	// 图文消息个数，限制为10条以内 (图文消息专有)

	private int articleCount;

	// 多条图文消息信息，默认第一个item为大图

	private List<WechatArticle> articles;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getToUserName() {
		return toUserName;
	}

	public void setToUserName(String toUserName) {
		this.toUserName = toUserName;
	}

	public String getFromUserName() {
		return fromUserName;
	}

	public void setFromUserName(String fromUserName) {
		this.fromUserName = fromUserName;
	}

	public String getMsgType() {
		return msgType;
	}

	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getMusicUrl() {
		return musicUrl;
	}

	public void setMusicUrl(String musicUrl) {
		this.musicUrl = musicUrl;
	}

	public String gethQMusicUrl() {
		return hQMusicUrl;
	}

	public void sethQMusicUrl(String hQMusicUrl) {
		this.hQMusicUrl = hQMusicUrl;
	}

	public int getArticleCount() {
		return articleCount;
	}

	public void setArticleCount(int articleCount) {
		this.articleCount = articleCount;
	}

	public List<WechatArticle> getArticles() {
		return articles;
	}

	public void setArticles(List<WechatArticle> articles) {
		this.articles = articles;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

}
